﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using ScrumLite.Services;
using ScrumLite.Services.Contracts;
using System.Collections.ObjectModel;

namespace ScrumLite.Gateways
{
    public class ReviewsServiceClient : ClientBase<IReviewsService>, IReviewsService
    {

        #region IReviewsService Members

        public Review[] GetReviews(string projectId)
        {
            return base.Channel.GetReviews(projectId);
        }

        public Review GetReview(string reviewId)
        {
            return base.Channel.GetReview(reviewId);
        }

        public Dictionary<int, int> GetReviewsByWeek(string projectId)
        {
            return base.Channel.GetReviewsByWeek(projectId);
        }

        public void AddReview(Review review)
        {
            base.Channel.AddReview(review);
        }

        public void UpdateReview(Review review)
        {
            base.Channel.UpdateReview(review);
        }

        #endregion
    }
}
